package com.toggery.POS.tool;

public class ThreadMode {
    public Thread getThread(int n)
    {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                long i = 100000000;
                i=i*n;
                int sum=0;
                int temp=0;
                String a="",a1="",a2="";
                for(int j=0;i<i+99999999;i++){
                    a1 = (a+i).substring(0,4);
                    a2 = (a+i).substring(5,9);
                    temp=Integer.parseInt(a1+a2);
//            System.out.println(i+","+temp);
                    if(i%temp==0){
                        sum++;
                    }
                }
                System.out.println(sum);
            }
        });

        return thread;
    }
}
